package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Order;

import java.util.List;
import java.util.Map;

public interface OrderDao {

    public void add(Order order);

    public List<Order> findByCondition(Order order);

    public Map findById4Detail(Integer id);

    public Integer findOrderCountByDate(String date);

    public Integer findOrderCountAfterDate(String date);

    public Integer findVisitsCountByDate(String date);

    public Integer findVisitsCountAfterDate(String date);

    public List<Map> findHotSetmeal();

    //根据日期查询预约结果
    List findCondition(Map<String, String> map);

    Order findById(Integer id);

    void edit(Order order);

    void delete(Integer id);

    Integer findCountByOrderId(Integer id);

    void deleteAssociation(Integer id);

    void editstatus(Order orderStatus);

    Page<Map> findByConditions(Map map);

}
